<?php
class PeriodicExpenditureType extends AppModel {
    var $name = 'PeriodicExpenditureType';
    var $primaryKey = 'periodic_expenditure_type_id';
    var $displayField = 'expenditure_type_id';

    var $belongsTo = array(
        'ExpenditureType',
        'Building',
        'AmountType' => array(
            'className' => 'LookupValue',
            'foreignKey' => 'amount_type',
            'conditions' => array('AmountType.lookup_type' => 'PERIODIC_EXPENDITURE_TYPE'),
            'order' => 'AmountType.meaning'
        ),
        'PeriodType' => array(
            'className' => 'LookupValue',
            'foreignKey' => 'period_type',
            'conditions' => array('PeriodType.lookup_type' => 'PERIOD'),
            'order' => 'PeriodType.meaning'
        )
    );
}
?>
